package com.example.boot.dlorderevaluate.dao;

import java.util.List;

import com.example.boot.dlorderevaluate.model.DlOrderEvaluate;

public interface DlOrderEvaluateMapper {
	int deleteByPrimaryKey(String id);

	int insert(DlOrderEvaluate record);

	int insertSelective(DlOrderEvaluate record);

	DlOrderEvaluate selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(DlOrderEvaluate record);

	int updateByPrimaryKey(DlOrderEvaluate record);
	/**
	 * 查找平均分
	 * @param goodsId
	 * @return
	 * @throws Exception
	 */
	Double findByGoodsEvaluate(String goodsId) throws Exception;
	/**
	 * 查找该商品所以评价
	 * @param id
	 * @return
	 */
	List<DlOrderEvaluate> findAllEvaluate(String goodsId);
	
	Double findByQualityScoreGoodsEvaluate(String goodsId) throws Exception;
	/**
	 * 查找
	 * @param goodsId
	 * @return
	 * @throws Exception
	 */
	Double findByDescribeScoreScoreGoodsEvaluate(String goodsId) throws Exception;

}